package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class FillListWithString {
	public static void main(String[] args) {
		List<String> list = new ArrayList<String>(10);
		for (int i = 0; i < 10; i++)
			list.add("");
		Collections.fill(list, "www.tah1986.com");
		for (String s : list)
			System.out.format("%s%n", s);
	}
}
